import "./src/index.tsx";

class App extends React.Component {
    constructor(...args) {
        super(...args);

    }

    componentDidMount() {
        const {codeInput} = this.refs;
        codeInput.addEventListener('change', this.change);
        codeInput.addEventListener('complete', this.complete);
    }

    change = (e) => {
        console.log(e.detail);
    }

    complete = (e) => {
        console.log(e.detail);
    }

    click(e) {
    }


    render() {
        return (<div>
            <code-input
                ref={"codeInput"}
            ></code-input>
        </div>);
    }
}

ReactDOM.render(<App/>, document.getElementById('root'));
